package com.itheima.fanxing;

public class Box<E> {

    private String name;
    private int age;
    private E  e;

    public Box() {
    }

    public Box(String name, int age, E e) {
        this.name = name;
        this.age = age;
        this.e = e;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public E getE() {
        return e;
    }

    public void setE(E e) {
        this.e = e;
    }

    @Override
    public String toString() {
        return "Box{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", e=" + e +
                '}';
    }
}
